server : server.cpp client.cpp lip.so mask.so beer.so redwine.so
	g++ -o server server.cpp ./plugin/CPluginController.cpp ./plugin/CPluginEnumerator.cpp ./serialize/CLSerializer.cpp ./obj/IGoodsPlugin.cpp ./obj/objLip.cpp ./obj/objBeer.cpp ./obj/objMask.cpp ./obj/objRedWine.cpp -ldl -lpthread -g
	g++ -o client client.cpp -g

lip.so:
	g++ -fpic -shared -o ./plugin/libA/libLip.so ./plugin/objPlugin/lipPlugin.cpp ./obj/objLip.cpp ./obj/IGoodsPlugin.cpp
mask.so:
	g++ -fpic -shared -o ./plugin/libA/libMask.so ./plugin/objPlugin/maskPlugin.cpp ./obj/objMask.cpp ./obj/IGoodsPlugin.cpp
beer.so:
	g++ -fpic -shared -o ./plugin/libB/libBeer.so ./plugin/objPlugin/beerPlugin.cpp ./obj/objBeer.cpp ./obj/IGoodsPlugin.cpp
redwine.so:
	g++ -fpic -shared -o ./plugin/libB/libRedwine.so ./plugin/objPlugin/redWinePlugin.cpp ./obj/objRedWine.cpp ./obj/IGoodsPlugin.cpp


